package com.huaxia.day19;

public class StaticTest {
    public static final int STATIC_FINAL_NUMBER = 10;

    public static int staticNumber;

    public int number;


    public static void main(String[] args) {
        System.out.println("不可变静态常量：" + StaticTest.STATIC_FINAL_NUMBER);


        System.out.println("初始化之前静态常量值：" + StaticTest.staticNumber);
        StaticTest.staticNumber = 100;
        System.out.println("初始化之后静态常量值：" + StaticTest.staticNumber);

        StaticTest test = new StaticTest();
        System.out.println("对象初始化之前静态常量值：" + test.number);
        test.number = 1000;
        System.out.println("对象初始化之后静态常量值：" + test.number);
    }
}
